# @Author：silence
# @Email：792245022@qq.com
# @Date：2025/2/17 1:04

class Person:
    name = None
    age = None

    def hi(self):
        print("hi python")

    def cal01(self):
        return sum(range(1, 1001))

    def cal02(self, n):
        return sum(range(1, n + 1))

    def get_sum(self, n1, n2):
        return n1 + n2


if __name__ == "__main__":
    person = Person()
    person.hi()
    sum_result01 = person.cal01()
    print(f"cal01 结果为：{sum_result01}")
    sum_result02 = person.cal02(10)
    print(f"cal02 结果为：{sum_result02}")
    sum_result03 = person.get_sum(10, 20)
    print(f"get_sum 结果为：{sum_result03}")
